/*    */ package client;
/*    */ 
/*    */ public class MapleProcess {
/*    */   private final String path;
/*    */   private final String MD5;
/*    */   private final String dir;
/*    */   private final String name;
/*    */   private final String ext;
/*    */   
/*    */   public MapleProcess(String path, String MD5) {
/* 11 */     this.path = path;
/* 12 */     this.MD5 = MD5;
/* 13 */     String[] names = path.split("\\\\");
/* 14 */     String name_ = path;
/* 15 */     if (names.length > 1) {
/* 16 */       StringBuilder sb = new StringBuilder();
/* 17 */       name_ = names[names.length - 1];
/* 18 */       for (int i = 0; i < names.length - 1; i++) {
/* 19 */         sb.append(names[i]).append("\\");
/*    */       }
/* 21 */       this.dir = sb.toString();
/*    */     } else {
/* 23 */       this.dir = null;
/*    */     } 
/* 25 */     names = name_.split("\\.");
/* 26 */     if (names.length > 1) {
/* 27 */       StringBuilder sb = new StringBuilder();
/* 28 */       for (int i = 0; i < names.length - 1; i++) {
/* 29 */         sb.append(names[i]);
/* 30 */         if (i < names.length - 2) {
/* 31 */           sb.append(".");
/*    */         }
/*    */       } 
/* 34 */       this.name = sb.toString();
/*    */     } else {
/* 36 */       this.name = name_;
/*    */     } 
/* 38 */     this.ext = (names.length > 1) ? names[names.length - 1] : null;
/*    */   }
/*    */   
/*    */   public String getPath() {
/* 42 */     return this.path;
/*    */   }
/*    */   
/*    */   public String getMD5() {
/* 46 */     return this.MD5;
/*    */   }
/*    */   
/*    */   public String getDir() {
/* 50 */     return this.dir;
/*    */   }
/*    */   
/*    */   public String getName() {
/* 54 */     return this.name;
/*    */   }
/*    */   
/*    */   public String getExt() {
/* 58 */     return this.ext;
/*    */   }
/*    */ }


/* Location:              C:\PGX\Server.jar!\client\MapleProcess.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */